package com.zhenglide.config;

import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import com.baomidou.mybatisplus.extension.incrementer.OracleKeyGenerator;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@MapperScan("com.zhenglide.mapper")
@Configuration
public class MybatiesPlusConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor(){
       return  new PaginationInterceptor();


   }
    /**
     * 序列生成器
     */
//    @Bean
//    public OracleKeyGenerator oracleKeyGenerator(){
//        return new OracleKeyGenerator();
//    }
}